package com.sc.nft.controller.request;

import com.sc.nft.entity.dto.DaoPledgeDigitDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class DaoPledgeCheckRequest {


    @ApiModelProperty("质押id")
    @NotNull(message = "质押id不能为空")
    private Long pledgeId;


    @ApiModelProperty("期数id")
    @NotNull(message = "期数id不能为空")
    private Long periodsId;

    @ApiModelProperty("daoId")
    @NotNull(message = "daoId不能为空")
    private Long daoId;

    @ApiModelProperty("质押藏品")
    @NotEmpty(message = "质押藏品不能为空")
    @Valid
    private List<DaoPledgeDigitDTO> collections;
}
